﻿namespace NMortgage.UI.Tests
{
    using System;

    using Microsoft.VisualStudio.TestTools.UnitTesting;

    using NMortgage.UI.Model;

    [TestClass]
    public class FeeTest : TestBase<Fee>
    {
        #region Methods

        [TestMethod]
        public void AmountTest()
        {
            Fee target = new Fee();
            double expected = 0.11d;
            double actual;
            target.Amount = expected;
            actual = target.Amount;
            Assert.AreEqual(expected, actual);
        }

        [TestMethod]
        public void DescriptionTest()
        {
            Fee target = new Fee();
            string actual;
            actual = target.Description;
            Assert.IsFalse(string.IsNullOrEmpty(actual));
        }

        [TestMethod]
        public void FeeConstructorTest()
        {
            Fee target = new Fee();
            Assert.IsNotNull(target);
        }

        [TestMethod]
        public void MonthsTest()
        {
            Fee target = new Fee();
            int expected = 10;
            int actual;
            target.Months = expected;
            actual = target.Months;
            Assert.AreEqual(expected, actual);
        }

        [TestMethod]
        public void YearsTest()
        {
            Fee target = new Fee();
            int expected = 10;
            int actual;
            target.Years = expected;
            actual = target.Years;
            Assert.AreEqual(expected, actual);
        }

        #endregion Methods
    }
}